<?php
/**
 * CEOfox
 *
 * @copyright  Copyright 2011-2012 CEOfox, Inc.
 * @license    http://ceofox.com/pages/license
 * @version    $Id: module.class.php 97087 2013-05-24 09:40:17 $
 * @author     CEOfox, Inc.
 */
?>
<?php
defined('PHPFOX') or exit('NO DICE!');

class Follow_Service_Module extends Phpfox_Service 
{
    private $_aSupportedModules = array(
        'friend' => array(
            'title' => '{phrase var=\'follow.friend\'}',
        ),
        'user_status' => array(
            'title' => '{phrase var=\'follow.user_status\'}',
        ),
        'poll' => array(
            'title' => '{phrase var=\'follow.poll\'}',
        ),
        'quiz' => array(
            'title' => '{phrase var=\'follow.quiz\'}',
        ),
        'market' => array(
            'title' => '{phrase var=\'follow.market\'}',
        ),
        'apps' => array(
            'title' => '{phrase var=\'follow.apps\'}',
        ),
        
    );
    private $_aBasicSupportedModules = array(
        'pages' => array(
            'title' => '{phrase var=\'follow.pages\'}',
        ),
        'photo' => array(
            'title' => '{phrase var=\'follow.photo\'}',
        ),
        'link' => array(
            'title' => '{phrase var=\'follow.link\'}',
        ),
         'video' => array(
            'title' => '{phrase var=\'follow.video\'}',
        ),
        'event' => array(
            'title' => '{phrase var=\'follow.event\'}',
        ),
        'music' => array(
            'title' => '{phrase var=\'follow.music\'}',
        ),
        'blog' => array(
            'title' => '{phrase var=\'follow.blog\'}',
        ),
        'forum' => array(
            'title' => '{phrase var=\'follow.forum\'}',
        ),
    );
    public function __construct()
    {
        $aRemovedModules = array('video','photo','event','blog','forum','music','link','pages');
        foreach($aRemovedModules as $sModuleName)
        {
            if(!phpfox::isModule($sModuleName) && isset($this->_aBasicSupportedModules[$sModuleName]))
            {
                unset($this->_aBasicSupportedModules[$sModuleName]);
            }
        }
        
    }
    public function getSupportModules($sType = 'user')
    {
        return ($sType == 'user') ? array_merge($this->_aBasicSupportedModules, $this->_aSupportedModules) : $this->_aBasicSupportedModules;
    }
      
}

?>

